package org.example.demo3.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sky.alioss")
@Data  //todo 因为加了componet,所以一开始就会以配置文件里的参数创建这个bean对象存储到spring容器中

public class AliOssProperties {

    private String endpoint="oss-cn-beijing.aliyuncs.com";
    private String accessKeyId="LTAI5t8fJSKF5ComLkqFNDt5";
    private String accessKeySecret="GDygG4rXrx6jykuty1ARPq7JkGDESH";
    private String bucketName="fileupload191";

}
